function getResource(url, callback){
	var req = new XMLHttpRequest();
	req.onreadystatechange = function(){
		if(req.readyState == 4){
			var result = (req.status == 200) ? true : false;
			callback(result, req.response);
		}
	}
	req.open("GET", url);
	req.send();
}
